package cn.com.jtang.wedding.model;

/**
 * 管理员、总代、渠道类
 */
import java.io.Serializable;
import java.util.Date;

public class AdminUser implements Serializable {

	private Long id;
	private String adminUserName; // 必填 登录名 唯一
	private String password; // 必填 密码
	private String companyName; // 必填 公司名
	private String telephone; // 必填 公司电话
	private String contact; // 必填 联系人
	private String mobile; // 必填 联系人手机
	private String province; // 必填 省
	private String city; // 必填 市
	private String address; // 必填 地址
	private String companyType; // 必填 公司类别-酒店 饭店 宾馆 婚庆公司 摄影摄像公司
	// 礼品公司 个人 其他
	private Date registTime; // 必填 注册时间
	private Long parentId; // 必填 上级管理员的ID
	private Long state; // 必填 状态
	private String description; // 描述
	private Long times; // 必填 次数
	private Long adminType; // 必填 管理员类型  1管理员 2总代 3渠道

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAdminUserName() {
		return adminUserName;
	}

	public void setAdminUserName(String adminUserName) {
		this.adminUserName = adminUserName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCompanyType() {
		return companyType;
	}

	public void setCompanyType(String companyType) {
		this.companyType = companyType;
	}

	public Date getRegistTime() {
		return registTime;
	}

	public void setRegistTime(Date registTime) {
		this.registTime = registTime;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getState() {
		return state;
	}

	public void setState(Long state) {
		this.state = state;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getTimes() {
		return times;
	}

	public void setTimes(Long times) {
		this.times = times;
	}

	public Long getAdminType() {
		return adminType;
	}

	public void setAdminType(Long adminType) {
		this.adminType = adminType;
	}

	public boolean decreaseTime() {
		if (times == 0) {
			return false;
		} else {
			this.times--;
			return true;
		}

	}

	public void increaseTime() {
		// TODO Auto-generated method stub
		times++;
	}

}
